package com.cw.jeeyt.dao.mapper.process;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.cw.jeeyt.common.Order;
import com.cw.jeeyt.common.annotation.LogParam;
import com.cw.jeeyt.dao.model.process.ActReModelDo;

/**
 * dao数据库操作接口
 *
 * @author chenw
 * @date 2019-03-23 23:37:05
 */
public interface ActReModelMapper {
    /**
     * 新增
     *
     * @param actReModel
     * @return 整数
     */
    @LogParam(logDes = "新增", operateModule = "管理")
    Integer insert(ActReModelDo actReModel);

    /**
     * 新增不为空的字段
     *
     * @param actReModel
     * @return 整数
     */
    @LogParam(logDes = "新增", operateModule = "管理")
    Integer insertSelective(ActReModelDo actReModel);

    /**
     * 删除
     *
     * @param actReModel
     */
    @LogParam(logDes = "删除", operateModule = "管理")
    void delete(ActReModelDo actReModel);

    /**
     * 修改不为null的字段
     *
     * @param actReModel
     */
    @LogParam(logDes = "修改", operateModule = "管理")
    void updateSelective(ActReModelDo actReModel);

    /**
     * 修改
     *
     * @param actReModel
     */
    @LogParam(logDes = "修改", operateModule = "管理")
    void update(ActReModelDo actReModel);

    /**
     * 根据主键查询
     *
     * @return
     */
    ActReModelDo getById(@Param("id_") String id_);

    /**
     * 查询所有
     *
     * @return 集合
     */
    List<ActReModelDo> queryActReModelList();

    /**
     * 分页查询
     *
     * @param actReModel 查询条件
     * @return 集合
     */
    List<ActReModelDo> queryByPage(@Param("actReModel") ActReModelDo actReModel, @Param("order") Order order)
   ;
}
